package models;
import javax.persistence.Entity;
import javax.persistence.OneToOne;

import play.db.jpa.Model;

@Entity
public class House extends Model
{

	@OneToOne(mappedBy = "house")
	public Person person;


	public String address;

	@Override
	public String toString()
	{
		return "House{" +
					   "person=" + person +
					   ", address='" + address + '\'' +
					   "} " + super.toString();
	}
}
